package com.graden.background.controller.sysuser.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 用户添加VO类
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
@Data
@ApiModel
public class UserAddVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(name = "bip账号", value = "bipCode", example = "zhongjianfeng")
    @NotBlank(message = "USER_0001")
    @Size(max = 20,min = 5,message = "USER_0019")
    private String bipCode;

    @ApiModelProperty(name = "角色Ids", value = "name")
    @NotEmpty(message = "USER_0010")
    private Integer[] roleIds;

}
